package cn.hcbycloud.auth.model;

import cn.hcbycloud.common.mysql.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色关系表
 *
 * @author gaoheng
 * @date 2022-01-22 00:47:38
 */
@Data
@TableName("tb_uaa_role_relation")
@EqualsAndHashCode(callSuper = true)
public class RoleRelation extends BaseModel<RoleRelation> {
    private static final long serialVersionUID=1L;

        
    /**
     * 主体标识
     */
    @TableField("main_id")
    private String mainId;
        
    /**
     * 类型：0:客户 | 1:用户 | 2:部门 |3:岗位 
     */
    @TableField("type")
    private String type;
        
    /**
     * 角色id
     */
    @TableField("role_id")
    private String roleId;
        
    /**
     * 租户ID
     */
    @TableField("tenant_id")
    private String tenantId;
                
}
